package functional;

import java.util.function.Predicate;

/**
 * @author lyx
 * @Date 2021/6/26 11:52
 * 返回boolean
 */
public class PredicateTest {
    public static void main(String[] args) {
       Predicate<String > predicate = (str)->{
            return !str.isEmpty();
        };
        System.out.println(predicate.test("aa"));
    }
}
